import junit.framework.TestSuite
import junit.framework.Test
import junit.framework.TestResult

/**
* Created by IntelliJ IDEA.
* User: christian
* Date: Nov 24, 2007
* Time: 10:57:01 AM
* To change this template use File | Settings | File Templates.
*/

class JcrTestSuite extends TestSuite{
    def static root = "/home/christian/IdeaProjects/jcrgrails/";
    def static testRoot = root + "src/groovy/ch/bluepenguin/jcr/groovy/";
     public static Test suite() throws Exception {
          TestSuite suite = new TestSuite();
//         def ant = new AntBuilder()
//         ant.delete(dir: root + "out")       
         GroovyTestSuite gsuite = new GroovyTestSuite();
         suite.addTestSuite(gsuite.compile(testRoot + "builder/JCRBuilderTests.groovy"));
         return suite;
     }

     void run(TestResult result)  {
         super.run(result)                  
     }
}